da08ab66347677aca04fb22a0e07b2204408f5c7,api/src/main/java/org/openmrs/module/htmlformentry/HtmlFormEntryUtil.java,HtmlFormEntryUtil,getEncounterType,#String#,1783
Before Change
//do nothing
}
int index = id.indexOf(":");
if (index != -1) {
return getMetadata(id, EncounterType.class, index);
}
// handle uuid id: "a3e1302b-74bf-11df-9768-17cfc9833272" if id matches a uuid format
After Change
}
//get EncounterType by mapping
encounterType = getMetadataByMapping(EncounterType.class, id);
if (encounterType != null) {
return encounterType;
}
// handle uuid id: "a3e1302b-74bf-11df-9768-17cfc9833272" if id matches a uuid format